<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <input type="button" value="click" @click="doIt(666,'heffefes')">
        <input type="text"    @keyup.enter="sayHi()">

    </div>

    <script src="vue.js"></script>
    <script>
    var app=new Vue({
        el:"#app",
        methods:{
            doIt:function(p1,p2){
                console.log("hello hi");
                console.log(p1);
                console.log(p2);
            },
            sayHi:function(){
                alert("chi le ma");
            }
        }
    })
    </script>
</body>
</html>